package com.creator.factory.abstractfactory;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        PcFactory factory = new DellPcFactory();
        IMouse mouse = factory.createMouse();
        IKeybo keybo = factory.createKeybo();
        mouse.say();
        keybo.say();

        factory = new HpPcFactory();
        mouse = factory.createMouse();
        keybo = factory.createKeybo();
        mouse.say();
        keybo.say();
    }
}
